package cn.itsource.pet.domain;

import cn.itsource.basic.domain.BaseDomain;
import cn.itsource.org.domain.Employee;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "t_search_master_msg")
public class SearchMasterMsg extends BaseDomain {
    private String title;
    private Integer state;
    private String name;
    private String age;
    private Integer gender;
    private String coatColor;
    private String resources;
    private Long petType;
    private Double price;
    private String address;
    private Long userId;
    private Long shopId;
    private String note;

    public void init(String note){
        this.setId(null);
        this.setState(0);//待接单
        this.setNote(note);
    }
}
